#ifndef _ALGA_AMD_DCE4_DCE4_DEV_H
#define _ALGA_AMD_DCE4_DCE4_DEV_H
/*
  author Sylvain Bertrand <digital.ragnarok@gmail.com>
  Protected by GNU Affero GPL v3 with some exceptions.
  See README at root of alga tree.
*/
struct dce4_dev {/* provides device specific services for dce4 */
	struct device *dev;
	struct atombios *atb;
	unsigned crtcs_n;
	void (*hpd_on)(struct device *dev, u8 hpd);
	void (*hpd_off)(struct device *dev, u8 hpd);
	bool (*hpd_sense)(struct device *dev, u8 hpd);
	void (*hpd_polarity_rearm)(struct device *dev, u8 hpd, bool connected);
	int (*crtc_fb)(struct device *dev, unsigned crtc, u64 fb, 
		enum alga_pixel_fmt pixel_fmt, unsigned w, unsigned h,
								unsigned pitch);
	void (*lut)(struct device *dev, unsigned crtc);
};
#endif
